<template>
	<view class="shell">
		<u-navbar title="开台成功" :title-size="35" :title-bold="true" :immersive="true" :background="background"
			:border-bottom="false"></u-navbar>
		<!-- 开台成功显示 -->
		<view class="picture">
			<image src="https://gongxiangtaiqiu.axa2.com/taiqiu/opensuccess.png" style="width: 100%; height: 100%;">
			</image>
		</view>
		<view class="title">
			打开成功
		</view>
		<view class="money">
			￥{{cash}}
		</view>
		<view class="pay">
			<!-- 微信支付 -->
		</view>
		<!-- <view class="btn" @click="checkorder">
			<view class="btn-p">
				查看订单
			</view>
		</view> -->
		<!-- 开台失败显示 -->
		<!-- <view class="picture">
			<image src="https://gongxiangtaiqiu.axa2.com/taiqiu/openfail.png" style="width: 100%; height: 100%;">
			</image>
		</view>
		<view class="title" style="width: 159rpx;">
			开台失败
		</view>
		<view class="" style="display: flex;margin-top: 40rpx;">
			<view class="orderbtn" @click="nextpage">
				<view class="orderbtn-p">
					返回订单
				</view>
			</view>
			<view class="btn">
				<view class="btn-p">
					重新支付
				</view>
			</view>
		</view> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				cash: '',
				orderId:'',
				shopid:'',
			}
		},
		onLoad(options) {
			
			this.cash = options.cash
			// this.orderId = options.orderId
			// this.shopid = options.shopId
			console.log(options, 'options')
		},
		methods: {
			checkorder() {
				this.$Api.getOrderInfo({
					orderId: this.orderId,
				}).then(res => {
					this.timelong = res.data.data.f_use_long
					console.log(this.timelong, '时间11')
					console.log(res.data.data.f_use_long, '时间')
					uni.navigateTo({
						url: '/pagesB/settle/settle?id='+this.orderId+'&shopid=' + this.shopid+'&f_use_long=' + this.timelong
					})
				})
				
			},
			nextpage() {
				uni.navigateBack({
					delta: 1
				})
			},

		}
	}
</script>

<style lang="scss">
	.picture {
		width: 316rpx;
		height: 254rpx;
		margin: auto;
		margin-top: 300rpx;
	}

	.title {
		width: 160rpx;
		height: 38rpx;
		font-size: 40rpx;
		font-family: PingFang SC;
		font-weight: bold;
		color: #222222;
		margin: auto;
		margin-top: 40rpx;
	}

	.money {
		width: 130rpx;
		height: 54rpx;
		font-size: 40rpx;
		font-family: PingFang SC;
		font-weight: bold;
		color: #222222;
		margin: auto;
		margin-top: 40rpx;
	}

	.pay {
		// width: 118rpx;
		height: 28rpx;
		font-size: 30rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: #999999;
		margin: auto;
		margin-top: 30rpx;
	}

	.orderbtn {
		width: 280rpx;
		height: 88rpx;
		background: #FFFFFF;
		border: 2px solid #222222;
		border-radius: 44rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		margin: auto;
		margin-top: 40rpx;

		.orderbtn-p {

			font-size: 30rpx;
			font-family: PingFang SC;
			font-weight: bold;
			color: #222222;
		}
	}

	.btn {
		width: 280rpx;
		height: 88rpx;
		background: #222222;
		border-radius: 44rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		margin: auto;
		margin-top: 40rpx;

		.btn-p {
			font-size: 30rpx;
			font-family: PingFang SC;
			font-weight: bold;
			color: #02FF83;
		}
	}
</style>
